package beans;


public class Ingredient
{
	private int id;
	private String name;
	private double amount;
	private int type;
	private int shopFlag;
	
	/**
	 * Constructor
	 * */
	public Ingredient()	{
		setId(0);
		setName("");
		setAmount(0);
		setType(0);
		setShopFlag(0);
	}
	/**
	 * Constructor
	 * @param id
	 * @param name
	 * @param amount
	 * @param type
	 * @param shopFlag
	 * */
	public Ingredient(int id, String name, double amount, int type, int shopFlag) {
		setId(id);
		setName(name);
		setAmount(amount);
		setType(type);
		setShopFlag(shopFlag);
	}

	/**
	 * 
	 */
	public int getId() {
		return this.id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * 
	 */
	public String getName()	{
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * 
	 */
	public double getAmount() {
		return this.amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	
	/**
	 * 
	 */
	public int getType() {
		return this.type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	/**
	 * 
	 */
	public int getShopFlag() {
		return this.shopFlag;
	}
	public void setShopFlag(int shopFlag) {
		this.shopFlag = shopFlag;
	}
	
/*	public String toString(){
		return this.getName()+" "+this.getAmount()+" "+MainFrame.dbHandler.getMeasure(this.getType());
	}*/
}
